package cn.chenc.framework.core.consts;

/**
 * 程序中公用的常量类
 *
 * @author secret
 */
public class CommonConst {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * header
     */
    public static final String HEADER = "Authorization";

    /**
     * 安全密码(UUID生成)，作为盐值用于用户密码的加密
     */
    public static final String ZYD_SECURITY_KEY = "929123f8f17944e8b0a531045453e1f1";

    /**
     * 程序默认的错误状态码
     */
    public static final int DEFAULT_ERROR_CODE = 500;

    /**
     * 程序默认的成功状态码
     */
    public static final int DEFAULT_SUCCESS_CODE = 200;

    /**
     * 防重提交 key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 登录用户key
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    /**
     * 登录token
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";

    public static final String SYS_DICT_KEY = "sys_dict";



}
